<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');
$this->load->view('header');
?>
<section class="container_12 clearfix" id="main">
	
		<ol class="post_list">
			<?php foreach ($posts as $v): ?>
				<li>
                    
                                        <?php echo anchor("/articles/$v->ID", "$v->post_title", array('title' => "$v->post_title")); ?>
					 / <?php echo $v->post_date; ?>
				</li>
			<?php endforeach; ?>
		</ol>
		
    <div class="pages"><?php echo $this->pagination->create_links(); ?></div>
	
	
</section>

<?php 
    echo $this->load->view('footer');